package com.lagou.edu.authority;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lagou.edu.authority.dto.MenuDTO;
import com.lagou.edu.authority.dto.RoleDTO;
import com.lagou.edu.authority.param.RoleQueryParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * TODO
 *
 * @author lm
 * @since 2021/11/4 14:43
 */
@FeignClient(value = "edu-authority-boot", path = "/role")
public interface RoleRemoteService {
    @PostMapping("/saveOrUpdate")
    boolean saveOrUpdateRole(@RequestBody RoleDTO roleDTO);

    @PostMapping("/getRolePages")
    Page<RoleDTO> getRolePages(@RequestBody RoleQueryParam roleQueryParam);
}
